/*********************************************************************************************************************
* COPYRIGHT NOTICE
* Copyright (c) 2019,逐飞科技
* All rights reserved.
* 技术讨论QQ群：一群：179029047(已满)  二群：244861897
*
* 以下所有内容版权均属逐飞科技所有，未经允许不得用于商业用途，
~* 欢迎各位使用并传播本程序，修改内容时必须保留逐飞科技的版权声明。
*
* @file				main
* @company			成都逐飞科技有限公司
* @author			逐飞科技(QQ3184284598)
* @version			查看doc内version文件 版本说明
* @Software			IAR 8.3 or MDK 5.24
* @Target core		MM32F3277
* @Taobao			https://seekfree.taobao.com/
* @date				2021-02-22
********************************************************************************************************************/
/********************************************************************
* Thank friend GG_ruler for his help 
* Thank friend GG_ruler for his help 
* Thank friend GG_ruler for his help 
* Thank friend GG_ruler for his help 
* @brief
*   由于中文的编码和解码，可能会出现乱码
*   因此，我选择尽量使用英文注释
*    因为我的英语水平不够，所以英语是用翻译软件复制的
*   如果你在翻译中文的时候发现句子不通，我也没办法，试着自己去理解    
*   Garbled characters may occur due to the Chinese encoding and decoding
*   Therefore, I choose to use English annotations as far as possible
*   Because my English level is not enough, English is copied by translation software
*   If you find that the sentence is impassable when translating Chinese, I can't help it, try to understand it by yourself
* @author           Chuyan

********************************************************************/
#include "zf_common_headfile.h"


int main(void)
{
    // Initialize function
    All_Init();
    
    while(1)
    {
        // Menu display
        if(gpio_get(SWITCH_2) || 1) 
        {
            gpio_set(LED1,0);
            DisplayMenu();
        }
        else
        {
            gpio_set(LED1,1);
        }
        
        // When the point passes, this variable is cleared to zero, representing a point passes
        if(0 == gps_tau1201.GPS_new_data_exe)
        {
            ring(50);
            system_delay_ms(30);
            ring(50);
        }
        
        // When the point passes, this variable is cleared to zero, indicating that a point is collected
        if(Flag_auto_check)
        {
            Flag_auto_check = 0;
            ring(200);
        }
    }
}



